import { IHandListItemResponse } from "@/api/dxn/type"

const ShowBlindInjection = ({
	gameTypeId,
	tableType,
	sbBlindScore,
	bbBlindScore,
	straddleAmount,
	anteScore,
	anteSwitch
}: IHandListItemResponse) => {
	const isTexas = [1, 3].includes(gameTypeId) || [2001, 2003].includes(tableType)

	return (
		<>
			{isTexas ? (
				<>
					<span>{sbBlindScore || "-"} /</span>
					<span>{bbBlindScore || "-"}</span>
					{!!straddleAmount && <span>/ {straddleAmount}</span>}
					{anteSwitch === 1 && <span>{`(${anteScore})`}</span>}
				</>
			) : (
				<>
					<span>{bbBlindScore || "-"}</span>
				</>
			)}
		</>
	)
}

export default ShowBlindInjection
